package com.tencent.wuyanzu.whattoeat;

import android.app.Activity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;

import com.tencent.wuyanzu.whattoeat.Global.ARGS;

public class MainActivity extends Activity {
    ImageView iWantFoodIV;
    ImageView iWantDesertIV;
    ImageView iWantDrinkIV;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        SharedPreferences msharePreference = getSharedPreferences("whattoeat", Activity.MODE_PRIVATE);
        ARGS.UID=msharePreference.getInt("uid",-1);
        iWantFoodIV=(ImageView)findViewById(R.id.main_want_food_IV);
        iWantFoodIV.setOnClickListener(
                new View.OnClickListener() {
                    @Override
                    public void onClick(View v) {
                        Intent intent=new Intent(MainActivity.this,SelectActivity.class);
                        startActivity(intent);
                    }
                }
        );
    }
}
